package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName GetOrderList
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/9/16 20:15
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取鲁班订单列表的返回参数")
public class GetOrderList {

    /**
     * data : {"count":1,"total":1,"list":[{"b_type":"1","buyer_words":"这是买家留言","cancel_reason":"","child":[{"b_type":"1","buyer_words":"","campaign_id":"123","campaign_info":[{"campaign_id":"123123","title":"好货123"}],"cancel_reason":"","code":"","combo_amount":10000,"combo_id":11801,"combo_num":1,"cos_ratio":"0.00","coupon_amount":1000,"coupon_info":[{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0,"pay_type":0}],"coupon_meta_id":"3283379324941639593","create_time":"1512553757","is_comment":"0","logistics_code":"ZX11111111","logistics_id":12,"logistics_time":"0","order_id":"6496368918926459150","order_status":3,"order_type":1,"out_product_id":11600,"out_sku_id":0,"pay_type":2,"pay_time":"2018-06-01 12:00:00","pid":"6496679971677798670A","post_addr":{"city":{"id":"150100","name":"呼和浩特市"},"detail":"详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}},"post_amount":0,"post_code":"10010","post_receiver":"啦啦","post_tel":"18610915742","product_id":"6491181509221810446","product_name":"泰国陶瓷粉饼粉扑保湿遮瑕修容持久定妆控油防水正品","product_pic":"https://sf1-ttcdn-tos.pstatp.com/obj/temai/123123","receipt_time":"0","seller_words":"这里是卖家留言1","shop_coupon_amount":0,"shop_id":13455,"spec_desc":[{"name":"颜色分类","value":"正方形（送土豪金勺+杯盖）"}],"total_amount":9000,"update_time":1528082587,"urge_cnt":0}],"child_num":2,"cos_ratio":"0.00","coupon_amount":2000,"coupon_info":[{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0}],"create_time":"1512626179","exp_ship_time":"1563606873","is_comment":"0","logistics_code":"ZX11111111","logistics_id":12,"logistics_time":"1512634239","order_id":"6496679971677798670A","order_status":3,"order_total_amount":18000,"pay_type":2,"pay_time":"2018-06-01 12:00:00","post_addr":{"city":{"id":"150100","name":"呼和浩特市"},"detail":"x详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}},"post_amount":0,"post_code":"10010","post_receiver":"啦啦","post_tel":"19900000001","receipt_time":"0","seller_words":"这里是卖家留言","shop_coupon_amount":0,"shop_id":13455,"update_time":1528085816,"urge_cnt":0}]}
     * err_no : 0
     * message : success
     */

    private DataBean data;
    private int err_no;
    private String message;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * count : 1
         * total : 1
         * list : [{"b_type":"1","buyer_words":"这是买家留言","cancel_reason":"","child":[{"b_type":"1","buyer_words":"","campaign_id":"123","campaign_info":[{"campaign_id":"123123","title":"好货123"}],"cancel_reason":"","code":"","combo_amount":10000,"combo_id":11801,"combo_num":1,"cos_ratio":"0.00","coupon_amount":1000,"coupon_info":[{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0,"pay_type":0}],"coupon_meta_id":"3283379324941639593","create_time":"1512553757","is_comment":"0","logistics_code":"ZX11111111","logistics_id":12,"logistics_time":"0","order_id":"6496368918926459150","order_status":3,"order_type":1,"out_product_id":11600,"out_sku_id":0,"pay_type":2,"pay_time":"2018-06-01 12:00:00","pid":"6496679971677798670A","post_addr":{"city":{"id":"150100","name":"呼和浩特市"},"detail":"详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}},"post_amount":0,"post_code":"10010","post_receiver":"啦啦","post_tel":"18610915742","product_id":"6491181509221810446","product_name":"泰国陶瓷粉饼粉扑保湿遮瑕修容持久定妆控油防水正品","product_pic":"https://sf1-ttcdn-tos.pstatp.com/obj/temai/123123","receipt_time":"0","seller_words":"这里是卖家留言1","shop_coupon_amount":0,"shop_id":13455,"spec_desc":[{"name":"颜色分类","value":"正方形（送土豪金勺+杯盖）"}],"total_amount":9000,"update_time":1528082587,"urge_cnt":0}],"child_num":2,"cos_ratio":"0.00","coupon_amount":2000,"coupon_info":[{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0}],"create_time":"1512626179","exp_ship_time":"1563606873","is_comment":"0","logistics_code":"ZX11111111","logistics_id":12,"logistics_time":"1512634239","order_id":"6496679971677798670A","order_status":3,"order_total_amount":18000,"pay_type":2,"pay_time":"2018-06-01 12:00:00","post_addr":{"city":{"id":"150100","name":"呼和浩特市"},"detail":"x详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}},"post_amount":0,"post_code":"10010","post_receiver":"啦啦","post_tel":"19900000001","receipt_time":"0","seller_words":"这里是卖家留言","shop_coupon_amount":0,"shop_id":13455,"update_time":1528085816,"urge_cnt":0}]
         */

        private int count;
        private int total;
        private List<ListBean> list;

        @NoArgsConstructor
        @Data
        public static class ListBean {
            /**
             * b_type : 1
             * buyer_words : 这是买家留言
             * cancel_reason :
             * child : [{"b_type":"1","buyer_words":"","campaign_id":"123","campaign_info":[{"campaign_id":"123123","title":"好货123"}],"cancel_reason":"","code":"","combo_amount":10000,"combo_id":11801,"combo_num":1,"cos_ratio":"0.00","coupon_amount":1000,"coupon_info":[{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0,"pay_type":0}],"coupon_meta_id":"3283379324941639593","create_time":"1512553757","is_comment":"0","logistics_code":"ZX11111111","logistics_id":12,"logistics_time":"0","order_id":"6496368918926459150","order_status":3,"order_type":1,"out_product_id":11600,"out_sku_id":0,"pay_type":2,"pay_time":"2018-06-01 12:00:00","pid":"6496679971677798670A","post_addr":{"city":{"id":"150100","name":"呼和浩特市"},"detail":"详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}},"post_amount":0,"post_code":"10010","post_receiver":"啦啦","post_tel":"18610915742","product_id":"6491181509221810446","product_name":"泰国陶瓷粉饼粉扑保湿遮瑕修容持久定妆控油防水正品","product_pic":"https://sf1-ttcdn-tos.pstatp.com/obj/temai/123123","receipt_time":"0","seller_words":"这里是卖家留言1","shop_coupon_amount":0,"shop_id":13455,"spec_desc":[{"name":"颜色分类","value":"正方形（送土豪金勺+杯盖）"}],"total_amount":9000,"update_time":1528082587,"urge_cnt":0}]
             * child_num : 2
             * cos_ratio : 0.00
             * coupon_amount : 2000
             * coupon_info : [{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0}]
             * create_time : 1512626179
             * exp_ship_time : 1563606873
             * is_comment : 0
             * logistics_code : ZX11111111
             * logistics_id : 12
             * logistics_time : 1512634239
             * order_id : 6496679971677798670A
             * order_status : 3
             * order_total_amount : 18000
             * pay_type : 2
             * pay_time : 2018-06-01 12:00:00
             * post_addr : {"city":{"id":"150100","name":"呼和浩特市"},"detail":"x详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}}
             * post_amount : 0
             * post_code : 10010
             * post_receiver : 啦啦
             * post_tel : 19900000001
             * receipt_time : 0
             * seller_words : 这里是卖家留言
             * shop_coupon_amount : 0
             * shop_id : 13455
             * update_time : 1528085816
             * urge_cnt : 0
             */

            private String b_type;
            private String buyer_words;
            private String cancel_reason;
            private int child_num;
            private String cos_ratio;
            private int coupon_amount;
            private String create_time;
            private String exp_ship_time;
            private String is_comment;
            private String logistics_code;
            private int logistics_id;
            private String logistics_time;
            private String order_id;
            private int order_status;
            private int order_total_amount;
            private int pay_type;
            private String pay_time;
            private PostAddrBean post_addr;
            private int post_amount;
            private String post_code;
            private String post_receiver;
            private String post_tel;
            private String receipt_time;
            private String seller_words;
            private int shop_coupon_amount;
            private int shop_id;
            private int update_time;
            private int urge_cnt;
            private List<ChildBean> child;
            private List<CouponInfoBeanX> coupon_info;

            @NoArgsConstructor
            @Data
            public static class PostAddrBean {
                /**
                 * city : {"id":"150100","name":"呼和浩特市"}
                 * detail : x详细地址aaa
                 * province : {"id":"150000","name":"内蒙古自治区"}
                 * town : {"id":"150101","name":"市辖区"}
                 */

                private CityBean city;
                private String detail;
                private ProvinceBean province;
                private TownBean town;

                @NoArgsConstructor
                @Data
                public static class CityBean {
                    /**
                     * id : 150100
                     * name : 呼和浩特市
                     */

                    private String id;
                    private String name;
                }

                @NoArgsConstructor
                @Data
                public static class ProvinceBean {
                    /**
                     * id : 150000
                     * name : 内蒙古自治区
                     */

                    private String id;
                    private String name;
                }

                @NoArgsConstructor
                @Data
                public static class TownBean {
                    /**
                     * id : 150101
                     * name : 市辖区
                     */

                    private String id;
                    private String name;
                }
            }

            @NoArgsConstructor
            @Data
            public static class ChildBean {
                /**
                 * b_type : 1
                 * buyer_words :
                 * campaign_id : 123
                 * campaign_info : [{"campaign_id":"123123","title":"好货123"}]
                 * cancel_reason :
                 * code :
                 * combo_amount : 10000
                 * combo_id : 11801
                 * combo_num : 1
                 * cos_ratio : 0.00
                 * coupon_amount : 1000
                 * coupon_info : [{"id":3283379324941639700,"name":"满198减20","description":"","credit":2000,"type":23,"discount":0,"pay_type":0}]
                 * coupon_meta_id : 3283379324941639593
                 * create_time : 1512553757
                 * is_comment : 0
                 * logistics_code : ZX11111111
                 * logistics_id : 12
                 * logistics_time : 0
                 * order_id : 6496368918926459150
                 * order_status : 3
                 * order_type : 1
                 * out_product_id : 11600
                 * out_sku_id : 0
                 * pay_type : 2
                 * pay_time : 2018-06-01 12:00:00
                 * pid : 6496679971677798670A
                 * post_addr : {"city":{"id":"150100","name":"呼和浩特市"},"detail":"详细地址aaa ","province":{"id":"150000","name":"内蒙古自治区"},"town":{"id":"150101","name":"市辖区"}}
                 * post_amount : 0
                 * post_code : 10010
                 * post_receiver : 啦啦
                 * post_tel : 18610915742
                 * product_id : 6491181509221810446
                 * product_name : 泰国陶瓷粉饼粉扑保湿遮瑕修容持久定妆控油防水正品
                 * product_pic : https://sf1-ttcdn-tos.pstatp.com/obj/temai/123123
                 * receipt_time : 0
                 * seller_words : 这里是卖家留言1
                 * shop_coupon_amount : 0
                 * shop_id : 13455
                 * spec_desc : [{"name":"颜色分类","value":"正方形（送土豪金勺+杯盖）"}]
                 * total_amount : 9000
                 * update_time : 1528082587
                 * urge_cnt : 0
                 */

                private String b_type;
                private String buyer_words;
                private String campaign_id;
                private String cancel_reason;
                private String code;
                private int combo_amount;
                private int combo_id;
                private int combo_num;
                private String cos_ratio;
                private int coupon_amount;
                private String coupon_meta_id;
                private String create_time;
                private String is_comment;
                private String logistics_code;
                private int logistics_id;
                private String logistics_time;
                private String order_id;
                private int order_status;
                private int order_type;
                private int out_product_id;
                private int out_sku_id;
                private int pay_type;
                private String pay_time;
                private String pid;
                private PostAddrBeanX post_addr;
                private int post_amount;
                private String post_code;
                private String post_receiver;
                private String post_tel;
                private String product_id;
                private String product_name;
                private String product_pic;
                private String receipt_time;
                private String seller_words;
                private int shop_coupon_amount;
                private int shop_id;
                private int total_amount;
                private int update_time;
                private int urge_cnt;
                private List<CampaignInfoBean> campaign_info;
                private List<CouponInfoBean> coupon_info;
                private List<SpecDescBean> spec_desc;

                @NoArgsConstructor
                @Data
                public static class PostAddrBeanX {
                    /**
                     * city : {"id":"150100","name":"呼和浩特市"}
                     * detail : 详细地址aaa
                     * province : {"id":"150000","name":"内蒙古自治区"}
                     * town : {"id":"150101","name":"市辖区"}
                     */

                    private CityBeanX city;
                    private String detail;
                    private ProvinceBeanX province;
                    private TownBeanX town;

                    @NoArgsConstructor
                    @Data
                    public static class CityBeanX {
                        /**
                         * id : 150100
                         * name : 呼和浩特市
                         */

                        private String id;
                        private String name;
                    }

                    @NoArgsConstructor
                    @Data
                    public static class ProvinceBeanX {
                        /**
                         * id : 150000
                         * name : 内蒙古自治区
                         */

                        private String id;
                        private String name;
                    }

                    @NoArgsConstructor
                    @Data
                    public static class TownBeanX {
                        /**
                         * id : 150101
                         * name : 市辖区
                         */

                        private String id;
                        private String name;
                    }
                }

                @NoArgsConstructor
                @Data
                public static class CampaignInfoBean {
                    /**
                     * campaign_id : 123123
                     * title : 好货123
                     */

                    private String campaign_id;
                    private String title;
                }

                @NoArgsConstructor
                @Data
                public static class CouponInfoBean {
                    /**
                     * id : 3283379324941639700
                     * name : 满198减20
                     * description :
                     * credit : 2000
                     * type : 23
                     * discount : 0
                     * pay_type : 0
                     */

                    private long id;
                    private String name;
                    private String description;
                    private int credit;
                    private int type;
                    private int discount;
                    private int pay_type;
                }

                @NoArgsConstructor
                @Data
                public static class SpecDescBean {
                    /**
                     * name : 颜色分类
                     * value : 正方形（送土豪金勺+杯盖）
                     */

                    private String name;
                    private String value;
                }
            }

            @NoArgsConstructor
            @Data
            public static class CouponInfoBeanX {
                /**
                 * id : 3283379324941639700
                 * name : 满198减20
                 * description :
                 * credit : 2000
                 * type : 23
                 * discount : 0
                 */

                private long id;
                private String name;
                private String description;
                private int credit;
                private int type;
                private int discount;
            }
        }
    }
}
